#
import requests

from config import base_url


class LoginAPI:
    def get_captcha(self):
        return requests.get(f"{base_url}/api/captchaImage")

    def login(self, login_data):
        return requests.post(f"{base_url}/api/login", json=login_data)
